package com.lanchetech.dao;

import com.lanchetech.bean.request.PageReq;
import com.lanchetech.bean.vo.FarmOrderVO;
import com.lanchetech.entity.FarmOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FarmOrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FarmOrder record);

    int insertSelective(FarmOrder record);

    FarmOrder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FarmOrder record);

    int updateByPrimaryKey(FarmOrder record);

    List<FarmOrderVO> findAllPage(PageReq req);

    List<FarmOrderVO> getMyExchangeProduct(PageReq req);
}